Fox's Git Mirrors
Node / rns-mirrors / Reticulum-Go.git / files / pkg / zenfix / testdata / module / adversarial / adversarial.go
Displaying Raw • Download
pkg/zenfix/testdata/module/adversarial/adversarial.go 83609bcb589eb3cfc35b98ecc0b3327b2ae99d77 (83609bcb) Text, 481 B
package adversarial
import "time"
// AdversarialNested ensures nested func literals do not confuse the outer function.
func AdversarialNested(tr interface {
RequestPath([]byte, string, []byte, bool) error
}, dest []byte) {
go func() {
for {
_ = tr.RequestPath(dest, "", nil, false)
}
}()
_ = time.Now()
}
// AdversarialCleanLiteral has a loop in a closure but the outer func is fine.
func AdversarialCleanLiteral() {
_ = func() {
for i := 0; i < 3; i++ {
}
}
}
Served by rngit 1.5.2 - Generated in 0.02s